<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <style>
    .box {
      height: 66px;
      width: 66px;
      background-color: #ff2235;
    }
  </style>
</head>
<body>
<div class="box" id="box1">123</div>
<div class="box" id="box2">456</div>
<script>
  var box1 = document.querySelector('#box1');
  var box2 = document.querySelector("#box2");
  box1.onclick = function (e) {
    console.log(e);
  }
  // => MouseEvent {isTrusted: true, screenX: 56, screenY: 141, clientX: 56, clientY: 38, …}
  box2.addEventListener('click', function (e) {
    console.log(e);
  })
  // => MouseEvent {isTrusted: true, screenX: 41, screenY: 215, clientX: 41, clientY: 112, …}
</script>
</body>
</html>